package com.xiaodimall.backsys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 分类表
 * @TableName tb_goods_category
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value ="tb_goods_category")
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class GoodsCategory extends BasePojo{
    /**
     * 分类id
     */
    @TableId(value = "category_id", type = IdType.AUTO)
    private Long categoryId;

    /**
     * 分类级别(1-一级分类 2-二级分类 3-三级分类)
     */
    @TableField("category_level")
    private Integer categoryLevel;

    /**
     * 父分类id
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 分类名称
     */
    @TableField("category_name")
    private String categoryName;

    /**
     * 排序值(字段越大越靠前)
     */
    @TableField("category_rank")
    private Integer categoryRank;

    /**
     * 删除标识字段(0-未删除 1-已删除)
     */
    @TableField("is_deleted")
    private Integer isDeleted;

}